package com.tt.aile.item.pojo.api;

import com.tt.aile.item.pojo.SpecGroup;
import com.tt.aile.item.pojo.SpecParam;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@RequestMapping("spec")
public interface SpecificationApi {

    //跟据cid3查询规格参数 比如手机76 我就查询所有手机的规格参数
    @GetMapping("params/goodsAdd")
    public List<SpecParam> querySpecParamByCid(@RequestParam("cid") Long cid);

    //根据cid3 且是否为搜索字段查询
    @GetMapping("searchParams")
    public List<SpecParam> querySearchParamsByCid(@RequestParam("cid") Long cid, @RequestParam("bool")Boolean bool);

}